<template>
  <div class="home">
    <router-view class="home_view"></router-view>
    <van-tabbar route>
      <van-tabbar-item replace to="/index" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/classPage" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item replace to="/cart" icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="manager-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  name: "Home",
  components: {},
};
</script>
<style lang="scss" scoped>
  .home{
    height:100%;
    overflow: hidden;
  }
  .home_view{
     height: calc(100% - 100px);
     overflow-y: auto;
  }
</style>
